-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Change the color of the date chip #1116
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe update modifies the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@dicethedev is attempting to deploy a commit to the LFG Labs Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Nitpick comments (1)
components/identities/identityCard.tsx (1)
221-223
: Improved whitespace handlingGood cleanup of unnecessary whitespace inside the span element.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
components/identities/identityCard.tsx
(5 hunks)styles/components/identityCard.module.css
(2 hunks)
🔇 Additional comments (3)
styles/components/identityCard.module.css (2)
121-133
: Good implementation of the expired state stylingThe styling for the expired container with the light red background and shadow effects creates a clear visual distinction for expired domains, aligning well with the PR objective.
153-162
: LGTM! Text styling is consistent with the designThe updated expiry text styling maintains readability while fitting well with the overall card design.
components/identities/identityCard.tsx (1)
156-157
: Consistent class naming in CopyContent componentThe class ordering change maintains consistency across the component.
Also applies to: 172-173
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Marchand-Nicolas You can make a review again! |
@dicethedev you didn't fix this #1116 (review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
styles/components/identityCard.module.css (1)
121-133
: Review: Verify Expired Date Chip Container StylingThe new
.expiryContainer
class defines the styling for the expired date chip. Please verify that usingbackground: var(--primary-700, #f6d5d5);correctly reflects the intended red theme for expired domains. It might be more semantic and clearer to use a dedicated design token (for example,
var(--negative-bg)
) if one exists. Also, confirm that the fallback color#f6d5d5
matches the design specifications for the red alert.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
styles/components/identityCard.module.css
(2 hunks)
🔇 Additional comments (2)
styles/components/identityCard.module.css (2)
135-137
: Review: Confirm Expiry Icon ColorThe
.expiryContainerIcon
class now sets the icon’s color tovar(--negative)
, which aligns with previous design feedback. Please double-check that this variable resolves to the appropriate red tone for expired status in your theme.
153-162
: Review: Check Expiry Text Color ConsistencyIn the updated
.expiryText
class, the text color is set tovar(--secondary)
. Confirm that this choice meets the design requirements for expired chips. If the intent is for the text itself also to reflect the expired status with a red tone, consider using the appropriate color variable or adjusting the value accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
styles/components/identityCard.module.css (2)
121-133
: Styling Update:.expiryContainer
for Expired DomainsThe
.expiryContainer
now usesbackground: var(--negative-light);
along with a subtle box-shadow. This change clearly signals an expired (error) state for the date chip. Verify that the lighter red tone (--negative-light
) delivers sufficient contrast and visual impact. If a more pronounced red is desirable, consider usingvar(--negative)
or adjusting the shade accordingly.
149-158
: Text Styling in.expiryText
The expired chip’s text is styled with
color: var(--secondary);
which provides a neutral contrast against the light red background. Please verify that this color choice meets accessibility contrast guidelines. If issues arise, consider experimenting with an alternative (e.g., a lighter or complementary tone) to ensure clarity.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
styles/components/identityCard.module.css
(1 hunks)styles/globals.css
(1 hunks)
🔇 Additional comments (3)
styles/globals.css (1)
36-38
: Enhancement: New CSS Variable for Error StatesThe new variable
--negative-light: #f6d5d5;
is a good addition to the theme, providing a dedicated light red tint for expired domains. Ensure that this shade complies with the visual design guidelines for error states across the application.styles/components/identityCard.module.css (2)
135-147
: New Class:.notExpiryContainer
for Active DomainsThe introduction of the
.notExpiryContainer
class withbackground: var(--primary300);
fits the requirement by visually distinguishing active (non-expired) domains with a greenish background. The consistent styling (padding, border-radius, shadow) ensures uniformity with other chip elements.
160-169
: Text Styling in.notExpiryText
The
.notExpiryText
class usescolor: var(--black);
and appears to offer good contrast on the greenish background defined in.notExpiryContainer
. This styling is clear and consistent with the visual design for active domains.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Good job! LGTM
I changed the color of the 'date chip' to red when the domain expired. I kept it green as it is currently when the domain has not yet expired.
close: #1026
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Style